<template>
  <div id="registraion-review">
    <div
      class="wrapper-container"
      style="display: flex; flex-direction: column; width: 100%"
    >
      <div class="search-container">
        <div class="search-container-left">
          <div
            class="search-container-item"
            v-for="(select, index) in selectList"
            :key="index"
          >
            <div v-if="select.type === 'select'" class="box">
              <span v-show="select.name">{{ select.name }}</span>

              <el-select
                v-model="select.val"
                style="width: 90px"
                size="mini"
                placeholder="请选择"
                clearable
              >
                <el-option
                  v-for="item in select.valList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                >
                </el-option>
              </el-select>
            </div>
            <div class="box" v-if="select.type === 'data'">
              <span class="demonstration" v-show="select.name">{{
                select.name
              }}</span>
              <el-date-picker
                v-model="select.val"
                type="date"
                placeholder="选择日期"
                prefix-icon="aaa"
              >
              </el-date-picker>
            </div>
            <div v-if="select.type === 'MultiSelect'" class="box" style="padding-top: 2px;">
              <span class="demonstration" v-show="select.name">{{
                select.name
              }}</span>
              <div @click="selectZYBC()" class="zybc-select">{{majorName}}</div>
            </div>
            <div v-if="select.type === 'btn'" class="box">
              <span class="demonstration" v-show="select.name">{{
                select.name
              }}</span>
              <el-input
              style="width:120px"
                v-model="select.val"
                placeholder="请输入内容"
              ></el-input>
            </div>
          </div>
          <div class="search-button" style="margin-left: 20px" @click="queryList">
            <img src="../../../../../assets/assessment/icon-search.png" alt="" />
            <span>查询</span>
          </div>
        </div>
      </div>
      <div class="search-right">
        <el-button type="danger" plain size="mini" @click="batchRepulse" icon="el-icon-circle-close" style="margin-left: 10px;margin-right: 20px;">批量打回</el-button>
        <el-button type="primary" plain size="mini" @click="batchSubmit"  icon="el-icon-circle-check">批量通过</el-button>
         <!--<el-button type="warning" plain size="mini" @click="electiveCouse" icon="el-icon-circle-plus-outline">互联网选修课登记</el-button>-->
      </div>
    </div>

    <div class="assessment-container">
      <div class="table-container">
        <el-table
          :data="tableData"
          border
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
          style="height: 580px; overflow-y: auto"
          @selection-change="handleSelectionChange"
        >
          <el-table-column
            type="selection"
            align="center"
            width="80"
          ></el-table-column>
          <el-table-column
            label="状态"
            prop="zt"
            align="center"
            width="120px"
          >
          </el-table-column>
          <el-table-column
            prop="opreate"
            label="操作"
            align="center"
            width="320px"
          >
            <template slot-scope="scope">
              <div class="tables-btn">
                <div
                  class="search-button green-css"
                  @click="editTeachingClass(scope.row)"
                >
                  <i class="el-icon-edit"></i>
                </div>
                <div
                  class="search-button orange-css"
                  @click="deletedMessageInfo(scope.row)"
                >
                  <i class="el-icon-delete"></i>
                </div>
                <div
                  class="search-button blue-css"
                  @click="setTeachingClass(scope.row)"
                >
                  <i class="el-icon-circle-check"></i>
                </div>
                <div
                  class="search-button red-css"
                  @click="singleRepulse(scope.row)"
                >
                  <i class="el-icon-circle-close"></i>
                </div>
              </div>
            </template>
          </el-table-column>
          <el-table-column prop="xueqi" label="学期" align="center">
          </el-table-column>
          <el-table-column prop="db" label="队别" align="center">
          </el-table-column>
          <el-table-column prop="nj" label="年级" align="center">
          </el-table-column>
          <el-table-column prop="zybc" label="专业班次" align="center">
          </el-table-column>
          <el-table-column prop="xm" label="姓名" align="center">
          </el-table-column>
          <el-table-column prop="xh" label="学号" align="center">
          </el-table-column>
          <el-table-column prop="sex" label="性别" align="center">
          </el-table-column>
          <el-table-column prop="platformName" label="平台名称" align="center">
          </el-table-column>
          <el-table-column prop="kcmc" label="选修互联网课程名称" align="center">
          </el-table-column>
          <el-table-column prop="classHours" label="学时" align="center">
          </el-table-column>
          <el-table-column prop="remarks" label="备注" align="center">
          </el-table-column>
        </el-table>
      </div>
    </div>
    <div class="wrapper-container">
      <div class="bottom-block" style="display: block">
        <div class="text">当前共找到{{ total }}条记录,当前显示{{ startPage }}-{{ endPage }}条</div>
      </div>
      <div class="pagination-block">
        <el-pagination
          prev-text="上一页"
          next-text="下一页"
          :page-size="pageSize"
          layout="prev, pager, next, jumper"
          :total="total"
          @current-change="handleCurrentChange"
          :current-page="currentPage"
        >
        </el-pagination>
      </div>
    </div>

    <el-dialog title="提示" :visible.sync="deletedMessageDialog" width="500px" class="scxx">
      <div class="class-tip">您确定删除当前信息?</div>
      <span slot="footer" class="dialog-footer">
        <el-button type="success" size="mini" plain @click="deletedInfo">确 定</el-button>
        <el-button
          type="warning" size="mini" plain
          @click="deletedMessageDialog = false"
          style="margin-left: 60px"
        >
          取 消
        </el-button>
      </span>
    </el-dialog>

    <el-dialog
      title="互联网选修课登记"
      :visible.sync="electiveCouseDialog"
      width="800px"
    >
      <div
        class="wrapper-container"
        style="margin: -15px 0 30px 50px; color: #004ca7"
      >
        <div class="search-container">
          <div class="search-container-left">
            <div class="box dialog-query">
              <span class="demonstration">姓名：</span>
              <el-input v-model="queryName" style="width: 120px;" placeholder="请输入内容"></el-input>
            </div>
            <div class="search-button" style="margin-left: 20px">
              <img src="../../../../../assets/assessment/icon-search.png" alt="" />
              <span>查询</span>
            </div>
          </div>
        </div>
      </div>
      <div class="body-manual-container">
        <div style="width: calc(100% - 100px); margin: 10px 50px">
          <ul>
            <li>
              <span class="active">平台名称</span>
              <span><el-input v-model="platformName"></el-input></span>
            </li>
            <li>
              <span class="active">选修互联网课程名称</span>
              <span><el-input v-model="electiveName"></el-input></span>
            </li>
            <li>
              <span class="active">学时</span>
              <span><el-input v-model="classHours"></el-input></span>
            </li>
            <li>
              <span class="active" style="height: 120px">备注</span>
              <span style="height: 120px"
                ><el-input
                  v-model="remarks"
                  type="textarea"
                  :rows="3"
                ></el-input
              ></span>
            </li>
          </ul>
        </div>
      </div>
      <div class="btn-caozuo">
        <el-button  type="warning" plain @click="electiveCouseDialog = false" size="mini">确 定</el-button>
        <el-button  type="primary" plain v-if="userRole == 'strator'" size="mini" @click="dz_submit">保存并通过</el-button>
        <el-button  type="primary" plain v-if="userRole == 'captain'" size="mini" @click="dz_submit">提交</el-button>
        <el-button  type="warning" plain @click="electiveCouseDialog = false"  size="mini" >取消</el-button>
      </div>
    </el-dialog>

    <el-dialog
      title="打回审核"
      :visible.sync="batchRepulseDialog"
      width="983px"
    >
      <div class="message-container">
        <div>打回原因：</div>
        <div>
          <el-input
            v-model="meaasgeText"
            type="textarea"
            :rows="8"
            style="width: 550px"
          ></el-input>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="success" size="mini" plain @click="submitBatchDahui">
          确 定
        </el-button>
      </span>
    </el-dialog>

    <el-dialog
      title="选择专业班次"
      :visible.sync="showAddMessageDialog"
      width="1300px"
      class="xzzybc"
    >
      <div>
        <el-row>
          <el-col :span="4">
            <el-tree
              default-expand-all
              :data="treeData"
              :props="defaultProps"
              @node-click="handleNodeClick"
              style="color: #004ca7; margin: 20px 40px;background: #f0f2f5;font-weight: bold;"
            ></el-tree>
          </el-col>
          <el-col :span="20" class="border-left">
            <div class="assessment-container" style="width: 100%;padding: 20px;">
              <div class="table-container" style="width: 100%;">
                <el-table
                  :data="majorTableData"
                  border
                  class="table-data"
                  row-class-name="row-class"
                  cell-class-name="cell-class"
                  header-row-class-name="header-row-class"
                  header-cell-class-name="header-cell-class"
                  style="height: 385px; overflow-y: auto"
                  @selection-change="handleZYBCSelectionChange"
                >
                  <el-table-column align="center" type="selection" width="80">
                  </el-table-column>
                  <el-table-column
                    prop="className"
                    label="专业班次"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="alias"
                    label="别名"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="studentTeam"
                    label="学员队"
                    width="130"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="specialtyName"
                    label="专业"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column prop="year" label="年级" align="center">
                  </el-table-column>
                  <el-table-column
                    prop="campus"
                    label="所在校区"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column prop="ratedNumber" label="额定人数" align="center">
                  </el-table-column>
                </el-table>
              </div>
            </div>
            <div class="wrapper-container" style="width: calc(100% - 40px);margin: 0 auto;">
              <div class="bottom-block" style="display: block">
                <div class="text">当前共找到{{ total1 }}条记录,当前显示{{ startPage1 }}-{{ endPage1 }}条</div>
              </div>
              <div class="pagination-block">
                <el-pagination
                  prev-text="上一页"
                  next-text="下一页"
                  :page-size="pageSize1"
                  layout="prev, pager, next, jumper"
                  :total="total1"
                  @current-change="handleDialogCurrentChange"
                  :current-page="currentPage1"
                >
                </el-pagination>
              </div>
            </div>
            <div class="btn-caozuo">
              <el-button type="warning" plain style="margin-right:100px" @click="submitChangeClassState" size="mini" >确定</el-button>
              <el-button type="danger" plain @click="cancelChangeClassState" size="mini" >取消</el-button>
            </div>
          </el-col>
        </el-row>
      </div>
    </el-dialog>

  </div>
</template>

<script>
import {hlwxkSh_list, hlwxkSh_tgBatch, hlwxkSh_dhBatch, hlwxkSh_delete, queryCommonXueqi, queryCommonNj, hlwxk_detail, hlwxkSh_dz_submit, queryCommonDB,
bpksj_query_specialty,queryCommonPycc, queryDefaultXueQi} from "@/api/trainingManagement/place.js";
import ButtonItem from "@/components/ButtonItem.vue";

export default {
  components: {
    ButtonItem,
  },
  data() {
    return {
      majorName: "",  // 专业班次名称
      major: "", //专业
      tableData: [],
      showAddMessageDialog:false, //专业班次弹窗
      selectZybcList: [], //选中专业班次数据列表
      defaultProps: {
        children: "children",
        label: "name",
      },
      total1: 0, //总条数
      pageSize1: 50, //条数
      startPage1: 0, //开始条数
      endPage1: 0, //结束条数
      currentPage1: 1, //当前页数

      selectTreeRow: {}, //选中树节点
      treeData: [], //专业班次左侧数据
      majorTableData: [],


      batchRepulseDialog: false, //批量打回
      userRole: "", //用户角色 // 管理员或队长 admin/captain
      queryName: "", //查询名称
      electiveCouseDialog: false, //互联网选修课登记
      meaasgeText: "", //打回原因：
      platformName: "", //平台名称
      electiveName: "", //选修互联网课程名称
      classHours: "", //学时
      remarks: "", //备注
      selectList: [
        {
          type: "select",
          name: "学期:",
          val: "",
          valList: [],
        },
        {
          type: "select",
          name: "队别:",
          val: "",
          valList: [],
        },
        {
          type: "select",
          name: "年级:",
          val: "",
          valList: [],
        },
        {
          type: "MultiSelect",
          name: "专业班次:",
          val: "",
          valList: [],
        },
        {
          type: "btn",
          name: "姓名:",
          val: "",
        },
        {
          type: "btn",
          name: "学号:",
          val: "",
        },
        {
          type: "btn",
          name: "课程名称:",
          val: "",
        },
      ],
      tableData: [],
      deletedMessageDialog: false, //删除课程弹窗
      selectRow: {}, //选中行信息
      total: 0, //总条数
      pageSize: 50, //条数
      startPage: 0, //开始条数
      endPage: 0, //结束条数
      currentPage: 1, //当前页数
      selectInfoList: [], //选中行信息
      dahuiStatus: "", //打回状态

      stuNumber: "", //学生账号
    };
  },
  created() {},
  mounted() {
    this.userInfo = JSON.parse(localStorage.getItem("xpaasui-userInfo"))
    this.userRole = this.userInfo.content.role_name;
    this.getDefaultXueQi();
    this.queryCommonXueqi();
    this.queryCommonNj();
    this.queryCommonDB();

  },
  methods: {
    async getDefaultXueQi(){
      queryDefaultXueQi().then(res=>{
        if(res.data.code == 200){
          this.selectList[0].val = res.data.data;
          // this.semester = res.data.data;
        }
      }).then(()=>{
        this.queryList();
      })
    },
   // 选中专业班次
    selectZYBC() {
      this.showAddMessageDialog = true;
      this.queryCommonPycc();
    },
    cancelChangeClassState() {
      this.selectZybcList = [];
      this.showAddMessageDialog = false;
    },
    handleZYBCSelectionChange(val) {
      this.selectZybcList = val;
    },
    async queryCommonPycc() {
      const res = await queryCommonPycc();
      if (res.data.code == 200) {
        this.treeData = res.data.data;
        this.selectTreeRow = this.treeData[0];
        this.queryZybcList();
      }
    },
    // 选中专业班次
    async submitChangeClassState() {
      if (this.selectZybcList.length > 0) {
        if (this.selectZybcList.length > 1) {
          this.$message.warning("最多选择一条专业班次数据!");
          return;
        } else {
          this.major = this.selectZybcList[0].id;
          this.majorName = this.selectZybcList[0].className;
          this.showAddMessageDialog = false;
        }
      } else {
        this.$message.warning("请选择一条专业班次!");
        return;
      }
    },
    handleNodeClick(node) {
      this.selectTreeRow = node;
      this.queryZybcList();
    },
    // 查询专业班次数据列表
    async queryZybcList() {
      var trainingLevel = this.selectTreeRow.id;
      var year = "";
      var yearSpecialtyId = "";
      var current = this.currentPage1;
      var size = this.pageSize1;
      const res = await bpksj_query_specialty(
        trainingLevel,
        year,
        yearSpecialtyId,
        current,
        size
      );
      if (res.data.code == 200) {
        this.majorTableData = res.data.data.records;
        this.total1 = res.data.data.total;
        var length = this.majorTableData.length;
        this.calculatePage1(this.pageSize1, res.data.data.current, length);
      }
    },
    // 计算开始和结束条数
    calculatePage1(pageSize, current, length) {
      if (current == 1) {
        if (length != 0) {
          this.startPage1 = 1;
          this.endPage1 = length;
        }
      } else {
        this.startPage1 = pageSize * (current - 1) + 1;
        this.endPage1 = parseInt(this.startPage1) + parseInt(length) - 1;
      }
    },
    handleDialogCurrentChange() {
      this.currentPage1 = val;
      this.queryZybcList();
    },
    // 队长 提交
    async dz_submit() {
      var data = {
        "coursename": this.electiveName,
        "address": this.platformName,
        "classhour": this.classHours,
        "remark": this.remarks
      };
      var xueqi = this.selectList[0].val;
      var studentNo = this.stuNumber;
      const res = await hlwxkSh_dz_submit(data, xueqi, studentNo);
      if (res.data.code == 200) {
        this.electiveCouseDialog = false;
        this.$message.success("已提交审核!")
        this.queryList();
      }
    },
    // 批量打回
    async submitBatchDahui() {
      var ids = []
      if (this.dahuiStatus == "batch") {
        this.selectInfoList.forEach(item => {
          ids.push(item.id);
        })
      } else {
        ids = [this.selectRow.id];
      }
      const res = await hlwxkSh_dhBatch(ids);
      if (res.data.code == 200) {
        this.batchRepulseDialog = false;
        this.$message.success("审核已打回!")
        this.queryList();
      }
    },
    handleSelectionChange(val) {
      this.selectInfoList = val;
    },
    // 计算开始和结束条数
    calculatePage(pageSize, current, length) {
      if (current == 1) {
        if (length != 0) {
          this.startPage = 1;
          this.endPage = length;
        }
      } else {
        this.startPage = pageSize * (current - 1) + 1;
        this.endPage = parseInt(this.startPage)  + parseInt(length) - 1;
      }
    },
    handleCurrentChange(val) {
      this.currentPage = val;
      this.queryList();
    },
    // 获取学期列表
    async queryCommonXueqi() {
      const res = await queryCommonXueqi();
      if (res.data.code == 200) {
        this.selectList[0].valList = res.data.data;
        // this.selectList[0].val = this.selectList[0].valList[0].id;
      }
    },
    // 获取队别
    async queryCommonDB() {
      const res = await queryCommonDB();
      if (res.data.code == 200) {
        if (res.data.data.length > 0) {
          this.selectList[1].valList= res.data.data;
          // this.selectList[1].val= this.selectList[1].valList[0].id;
        }
      }
    },
    // 获取年级列表
    async queryCommonNj() {
      const res = await queryCommonNj('');
      if (res.data.code == 200) {
        this.selectList[2].valList = res.data.data;
        // this.selectList[2].val = this.selectList[2].valList[0].id;
      }
    },
    async queryList() {
      var xueqi = this.selectList[0].val;
      var db = this.selectList[1].val;
      var nj = this.selectList[2].val;
      var zybc = this.major;
      var xm = this.selectList[4].val;
      var xh = this.selectList[5].val;
      var kcmc = this.selectList[6].val;
      var current = this.currentPage;
      var size = this.pageSize;
      const res = await hlwxkSh_list(xueqi, db, nj, zybc, xm, xh, kcmc, current, size);
      if (res.data.code == 200) {
        this.tableData = res.data.data.records;
        this.total = res.data.data.total;
        var length = this.tableData.length;
        this.calculatePage(
          this.pageSize,
          res.data.data.current, length);
      }
    },
    // 批量通过
    async batchSubmit() {
      if (this.selectInfoList.length > 0) {
        var ids = [];
        this.selectInfoList.forEach(item => {
          ids.push(item.id)
        })
        const res = await hlwxkSh_tgBatch(ids);
        if (res.data.code == 200) {
          this.$message.success("审核已通过!")
          this.queryList();
        }
      } else {
        this.$message.warning("请先选择要通过的数据!")
        return
      }
    },
    singleRepulse(row) {
      this.selectRow = row;
      this.dahuiStatus = "single";
      this.batchRepulseDialog = true;
    },
    batchRepulse() {
      if (this.selectInfoList.length > 0) {
        var ids = [];
        this.selectInfoList.forEach(item => {
          ids.push(item.id)
        })
        this.dahuiStatus = "batch";
        this.batchRepulseDialog = true;
      } else {
        this.$message.warning("请先选择要通过的数据!")
        return
      }

    },
    // 互联网选课登记
    electiveCouse() {
      this.electiveCouseDialog = true;
    },
    // 修改
    editTeachingClass(row) {
      this.queryName = row.xm;
      this.queryDetails(row.id);
      this.electiveCouseDialog = true;

    },
    async queryDetails(id) {
      const res = await hlwxk_detail(id);
      if (res.data.code == 200) {
        this.platformName = res.data.data.address; //平台名称
        this.electiveName = res.data.data.coursename; //选修互联网课程名称
        this.classHours = res.data.data.classhour; //学时
        this.remarks = res.data.data.remark; //备注
        this.stuNumber = res.data.data.id; //
      }

    },
    // 通过
    async setTeachingClass(row) {
      var ids = [row.id];
      const res = await hlwxkSh_tgBatch(ids);
      if (res.data.code == 200) {
        this.$message.success("审核通过!")
        this.queryList();
      }
    },
    // 确认删除
    async deletedInfo() {
      var ids = [this.selectRow.id];
      const res = await hlwxkSh_delete(ids);
      if (res.data.code == 200) {
        this.$message.success("数据删除成功!")
        this.deletedMessageDialog = false;
        this.queryList();
      }
    },
    // 课程删除
    deletedMessageInfo(row) {
      this.deletedMessageDialog = true;
      this.selectRow = row;
    },
  },
  computed: {}, //计算属性
};
</script>
<style lang="less" scoped>
.assessment-container {
  .el-dialog__body {
    height: 251px;
  }
  .el-dialog__footer {
    padding: 10px 20px 45px;
  }
  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }
  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }
  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }
  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }
  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }
  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }
}
</style>
<style lang="less" scoped>
@import "../../../../../styles/text.less";
.assessment-container .table-container {
  // overflow: scroll;
}
.assessment-container .table-container .table-header {
  width: 1935px;
}
.assessment-container .table-container .table-body {
  width: 1935px;
}
/deep/ .szjky .el-dialog__body {
  height: 432px;
}
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
</style>
<style lang="less" scoped>
@import "../../../../../styles/supervision.less";

.wrapper-container {
  width: 1711px;
  margin: 0 auto;
}

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    /*border-radius: 9px;*/
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  width: 100%;
  flex-wrap: wrap;
  .search-container-item {
    width: 12%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      margin-bottom: 20px;
      align-items: center;
      /deep/ .el-input__inner {
        height: 28px;
      }
    }
  }
}

/deep/.el-date-editor.el-input {
  width: 110px;
}
/deep/ .el-input--medium {
  width: 110px;
  .el-input__inner {
    height: 28px;
    width: 110px;
    padding: 0px 18px;
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  // display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}

.search-button {
  width: 77px;
  height: 28px;
  line-height: 28px;
  background: #f1f8fe;
  border: 1px solid #51aef6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  > span {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  > img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
}

.mar-lef-2 {
  margin-left: 20px;
}
.undeLine {
  text-decoration: underline;
  cursor: pointer;
}

.edit-icon {
  font-size: 20px;
  color: #02c86c;
  margin-left: 10px;
  cursor: pointer;
}

.body-manual-container {
  > div:nth-child(1) {
    width: 1200px;
    // height: 785px;
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          padding-top: 20px;
          vertical-align: middle;
          &:nth-child(n) {
            // width: 357px;
            width: 290px;
          }
          // &:nth-child(2n) {
          // 	width: 444px;
          // }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          > div {
            width: 100%;
          }
          /deep/ .el-input__inner {
            height: 28px;
          }
        }
      }
    }
  }
}

.add-icon {
  font-size: 28px;
  color: #f3b815;
  margin-left: 10px;
  cursor: pointer;
}

.date-select {
  height: 100%;
  padding: 0;
  padding-left: 40px;
  overflow-y: auto;
  width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-select-show {
  height: 100%;
  width: 500px;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.class-tip {
  color: #004ca7;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px;
}

.tip-text {
  color: #004ca7;
  margin-left: 5px;
  font-size: 16px;
}

/deep/ .xzjy .el-dialog__body {
  padding: 0 !important;
  .wrapper-container {
    width: 100% !important;
  }
  .wrapper-container .search-container .search-container-left {
    margin-left: 20px;
    flex-wrap: wrap;
    .search-container-item {
      width: 200px;
      margin-right: 10px;
      .box {
        > span {
          text-align: left;
          width: 80px;
        }
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 20px;
        align-items: center;
        /deep/ .el-input__inner {
          height: 28px;
        }
      }
    }
  }
}

/deep/ .el-tree-node__expand-icon.expanded {
  color: rgb(0, 76, 167);
}

.xzjy .tree {
  padding: 30px;
  color: rgb(0, 76, 167);
  font-weight: bold;
  font-size: 16px;
}

.btn-caozuo {
  text-align: center;
  // display: flex;
  // align-items: center;
  // justify-content: space-around;
  width: 800px;
  margin: 0 auto;
  padding-top: 25px;
}

.tables-btn {
  display: flex;
  justify-content: space-around;
  > div {
    min-width: 60px;
    margin: 10px;
  }
  .orange-css {
    color: #f5866a;
    border: 1px solid #f5866a;
    background: #feede2;
  }

  .purple-css {
    color: #5e36eb;
    border: 1px solid #5e36eb;
    background: #ebe4fe;
  }

  .green-css {
    color: #02c86c;
    border: 1px solid #02c86c;
    background: #dfffef;
  }

  .red-css {
    color: #ff3819;
    border: 1px solid #ff3819;
    background: #ffefef;
  }
}

.search-right {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}
.message-container {
  > div {
    display: inline-block;
    &:nth-child(1) {
      padding-left: 111px;
      font-size: 20px;
      color: rgba(0, 76, 167, 1);
      font-weight: bold;
      vertical-align: top;
    }
  }
}

.assessment-container {
  width: calc(100% - 20px);
  .table-container {
     width: 100%;
  }
}

.scxx {
  /deep/ .el-dialog {
    height: 320px;
  }
}

.dialog-query {
  /deep/ .el-input__inner {
    height: 28px;
  }
}

.zybc-select {
  width: 130px;
  height: 28px;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
  padding-left: 10px;
  font-size: 14px;
  padding-top: 3px;
}

.xzzybc {
  /deep/ .el-dialog {
    height: 720px;
  }
}

.btn-caozuo {
  // display: flex;
  // align-items: center;
  // justify-content: space-around;
  text-align: center;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding-top: 25px;
}
</style>


<style lang="less" scoped>
  #registraion-review{
    /deep/ .el-button--warning.is-plain{
      background: #FFF6EF;
      border-color: #F3B815;
      color: #F3B815;
      border-radius: 6px;
    }
    /deep/ .el-button--warning.is-plain:focus, .el-button--warning.is-plain:hover{
      color: #F3B815;
      background: #FFF6EF;
      border: 1px solid #F3B815;
      border-radius: 6px;
    }

    /deep/ .el-button--success.is-plain{
      background: #F1FFF8;
      border-color: #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }
    /deep/ .el-button--success.is-plain:hover{
      background: #F1FFF8;
      border: 1px solid #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain{
      background: #F1F8FE;
      border-color: #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain:hover{
      background: #F1F8FE;
      border: 1px solid #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain{
      background: #FFEFEF;
      border-color: #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain:hover{
      background: #FFEFEF;
      border: 1px solid #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }
  }
</style>
